lockMessages
Type
property
Summary
Specifies whether setProp triggers, getProp calls, and certain built-in messages are sent automatically.
Syntax
set the lockMessages to {true | false}
Description
Use the lockMessages property to prevent unwanted handlers from being triggered, or to speed up operations when handlers that are normally run automatically are not needed.
If the lockMessages property is set to true, the following are not sent:
- Navigation messages (such as openCard, closeStack, and so on)
- Object creation messages (such as newCard, newButton, and so on)
- getProp calls
- setProp triggers
It is useful to set this property if a handler temporarily visits a card and you don't want the normal messages to be triggered.
The lockMessages property is automatically set to false when a palette, modeless, or modal stack is opened, even if a handler is still running.
Examples
set the lockMessages to false
Related
command: reset, lock messages, modal, modeless, palette
glossary: message, property, getProp call, built-in message, handler, setProp trigger, trigger, execute
message: newButton, closeStack
object: stack
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile